<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@taglib prefix="sf" uri="http://www.springframework.org/tags/form"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
			<c:if test="${errorMessage != null}">
				<p class="error">
			    	${errorMessage}
			    </p>
			</c:if>
	<sf:form method="post" modelAttribute="loginForm" commandName="loginForm" action="${pageContext.request.contextPath}/user/login.do">
		用户名：<sf:input path="userName" /><sf:errors path="userName"/><br/>
		密码:<sf:password path="password"/><sf:errors path="password"/> <br/>
		<input type="submit" value="提交">
	</sf:form>
</body>
</html>